package com.park.service.impl.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.user.IntegralIncomeModel;
import com.park.client.service.user.IntegralIncomeService;
import com.park.dao.user.IntegralIncomeMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("integralIncomeService")
public class IntegralIncomeServiceImpl extends BaseServiceImpl<IntegralIncomeModel>  implements IntegralIncomeService{

	@Autowired
	private IntegralIncomeMapper incomeMapper;
	

	@Override
	public boolean insert(IntegralIncomeModel record) {
		return incomeMapper.insert(record) == 1;
	}

	@Override
	public boolean insertSelective(IntegralIncomeModel record) {
		return incomeMapper.insertSelective(record)==1;
	}

	@Override
	public List<IntegralIncomeModel> selectAll() {
		return incomeMapper.selectAll();
	}


	@Override
	public List<IntegralIncomeModel> selectPagination(IntegralIncomeModel t) {
		return incomeMapper.selectPagination(t);
	}

	@Override
	public Integer selectTotal(IntegralIncomeModel t) {
		return incomeMapper.selectTotal(t);
	}

}
